home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 August: Tool Chest / Dev.CD Aug 98 TC.toast / Tool Chest / Testing & Debugging / Virtual User / Virtual User Current Release / Examples / External Tool Templates / CPlus Tool Template / Configuration.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-04  |  2.3 KB  |  77 lines  |  [TEXT/MPS ]

  1. /*
  2.  *    File:        Configuration.h
  3.  *
  4.  *    Contains:    xxx put contents here xxx
  5.  *
  6.  *    Written by:    P. Nagarajan
  7.  *
  8.  *    Copyright:    © 1993 by Apple Computer, Inc., all rights reserved.
  9.  *
  10.  *    Change History (most recent first):
  11.  *
  12.  *                 3/26/93    NAGA    xxx put comment here xxx
  13.  *
  14.  *    To Do:
  15.  */
  16.  
  17. #ifndef __Configuration__
  18. #define __Configuration__
  19.  
  20. #ifndef __TYPES__
  21.     #include <Types.h>
  22. #endif
  23.  
  24. struct Configuration
  25. {
  26.     // Values from SysEnvirons (Version 1)
  27.     short environsVersion;
  28.     short machineType;
  29.     short systemVersion;
  30.     short processor;
  31.     Boolean hasFPU;
  32.     Boolean hasColorQD;
  33.     short keyboardType;
  34.     short atDrvrVersNum;
  35.     long teVersion;                                // TextEdit version
  36.  
  37.     // Derived values
  38.     Boolean hasROM128K;                            // ROM 128K - OR - Better
  39.     Boolean hasHFS;
  40.  
  41.     Boolean hasHierarchicalMenus;
  42.     Boolean hasScriptManager;
  43.     Boolean hasStyleTextEdit;
  44.     Boolean hasSoundManager;
  45.     Boolean hasWaitNextEvent;
  46.     Boolean hasSCSI;
  47.     Boolean hasDesktopBus;
  48.     Boolean hasAUX;
  49.     Boolean hasTempMem;                            // TRUE if Process Manager temp memory is
  50.                                                 // avail
  51.     Boolean has32BitQD;                            // TRUE if 32 bit Quickdraw is installed
  52.     Boolean hasAppleEventMgr;                    // TRUE if running under System 7.0
  53.     Boolean hasAppleEventMgr101;                // TRUE if running Apple Event Manager 1.0.1 or later
  54.     Boolean hasEditionMgr;                        // TRUE if running under System 7.0
  55.     Boolean hasHelpMgr;                            // TRUE if running under System 7.0
  56.     Boolean hasAliasMgr;                        // TRUE if running under System 7.0
  57.     Boolean hasFolderMgr;                        // TRUE if running under System 7.0
  58.     Boolean hasProcessMgr;                        // TRUE if running under System 7.0
  59.     Boolean hasThreadMgr;                        // TRUE if running with Thread Manager 2.0.1 or later
  60.     Boolean hasPopupCDEF;                        // TRUE if running under System 7.0
  61.     Boolean hasTrueType;                        // TRUE if TrueType is present
  62.  
  63.     Boolean isOnlyBackground;                    // TRUE if ProcessInfoRec.processMode has modeOnlyBackground
  64.     Boolean isHighLevelEventAware;                // TRUE if ProcessInfoRec.processMode has modeHighLevelEventAware
  65. };
  66.  
  67. extern    void         DefineConfiguration(Configuration&);
  68. extern    void         BlockSet( Ptr destPtr, long byteCount, unsigned char setVal );
  69.  
  70.         long        StripLong(void * address);
  71. pascal    TrapType    GetTrapType(short theTrap);
  72.         short        NumToolboxTraps();
  73. pascal    Boolean        TrapExists(short theTrap);
  74.         Boolean        HasGestaltAttr(OSType itsAttr,  short itsBit);
  75. #endif
  76.  
  77.